import Vue from "vue";
import VueRouter from "vue-router";
import NotFound from "@/views/NotFound";
import Home from "@/views/Home";
import Student from "@/views/Student";
Vue.use(VueRouter);
const routes = [ //定义一个路由规则数组
    {
        path: "/",
        component: Home
    },
    {
        path: "/student", //访问路径·
        component: Student //对应的组件
    },
    {
        path: "*",
        component: NotFound
    }
]
const router = new VueRouter({
    routes: routes //在 VueRouter 实例中使用该路由规则数组
});
export default router;